package com.backend.mzyf.Utils;

import com.backend.mzyf.lib.ReturnCode;

import java.util.HashMap;

public class ReturnUtil {

    public static HashMap<String,Object> returnSuccess(String message){
        HashMap<String,Object> dataMap = new HashMap<String,Object>();
        dataMap.put("status",ReturnCode.STATUS_SUCCESS);
        dataMap.put("message",message);

        return dataMap;

    }

    public static HashMap<String,Object> returnFaild(String message){
        HashMap<String,Object> dataMap = new HashMap<String,Object>();
        dataMap.put("status",ReturnCode.STATUS_FAILED);
        dataMap.put("message",message);

        return dataMap;

    }
}
